<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0px;
        }
        #div{
            width: 400px;
            height: 2000px;
            background: orange;
            position: absolute;
            left: 50px;
            top:50px
        }
        #d1{
            width: 100px;
            height: 100px;
            background: #008B8B;
            position: fixed;
            left: 200px ;
            top:200px

        }
        #d2{
            width: 100px;
            height: 100px;
            background: gray;

        }
        #d3{
            width: 100px;
            height: 100px;
            background: red;
        }
        #d4{
            width: 100px;
            height: 100px;
            background: rebeccapurple;
            position: relative;
            top: 100px;
            left: 100px;
        }
        #s1{
            width: 100px;
            height: 100px;
            background: red;
            color: orange;
        }
        #s2{
            width: 100px;
            height: 100px;
            background: rebeccapurple;
        }
    </style>
</head>
<body>
<div id="div">
    <div id="d1">div1</div>
    <div id="d2">div2</div>
    <div id="d3">div3</div>
    <div id="d4">div4</div>
</div>

<!--<span id="s1">span1</span>-->
<!--<span id="s2">span2</span>-->
</body>
</html>